use iced::{Application, Font, Sandbox, Settings};
use iced::font::{Family, Weight};
use crate::gift::Gift;

mod gift;

fn main() -> iced::Result {
    const CUSTOM_FONT: &[u8] = include_bytes!("../fonts/HarmonyOS_Sans_Medium.ttf");



    let settings = Settings {
        default_font: Font {
            family: Family::Name("微软雅黑"),
            weight: Weight::Bold,
            ..Default::default()
        },
        ..Settings::default()
    };


    <Gift as Application>::run(settings)?;
    Ok(())
}

